class Makers < ActiveRecord::Migration
  def up
    create_table :makers do |t|
      t.timestamps

      t.integer :prefecture, :null => false
      t.string :name, :null => false
      t.string :name_yomi, :null => false
      t.decimal :latitude, :precision =>20, :scale => 17, :null => true
      t.decimal :longtitude, :precision =>20, :scale => 17, :null => true
      t.string :mail_address, :null => true
      t.string :zipcode, :null => true
      t.string :address, :null => true
      t.string :phone, :null => true
      t.string :fax, :null => true
      t.date :establishment, :null => true
      t.string :water, :null => true
      t.boolean :is_observe, :null => true, :default => false
      t.text :pr, :null => true
      t.string :article, :null => true
    end
  end

  def down
    drop_table :makers
  end
end
